package com.huilang.domo1;

public class Client {
    public static void main(String[] args) {
        Order order1 = new Order();
        Order order2 = new Order();
        order1.setDiningTable(1);
        order1.setFoodD("西红柿",1);
        order1.setFoodD("可乐",2);


        order2.setDiningTable(2);
        order2.setFoodD("青椒肉丝",1);
        order2.setFoodD("雪碧",2);

        SeniorChef seniorChef = new SeniorChef();
        OrderCommand orderCommand = new OrderCommand(seniorChef, order1);
        OrderCommand orderCommand2 = new OrderCommand(seniorChef, order2);

        Waitor waitor = new Waitor();
        waitor.setCommand(orderCommand);
        waitor.setCommand(orderCommand2);

        waitor.orderUp();
    }
}